<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>player demo</title>
<style type="text/css">

</style>
</head>
<body>

<pre>

	支持flv格式媒体地址的视频播放器 （开源播放器：jwPlayer）: <br>
	下载地址: <a href="http://www.jwplayer.com/" target="_blank">http://www.jwplayer.com/</a> <br>
	FLV地址:<input type="text" name="url" id="url" value="{__STATIC__}/media/happy_feet.flv" style="width:498px" />
	<input type="button" value="试听/关闭" style="background:;width:70px;" onclick="stMusic(url.value)" />
    <div id="playerSpan" style="display:none">
		&nbsp;<font color="#ff0000">FLV地址测试：</font>
		&nbsp;<span id="insetplayer" style="text-align:left;"></span>
    </div>

	<script src="{__STATIC__}/player/js/player.js" type="text/javascript"></script>
	<script type="text/javascript">
		function the(s){return document.getElementById(s);}
		function stMusic(url){
			if(the("playerSpan").style.display=="none"){
				var ostr = jwPlayer(url,458,350);
				/*_____________*/
				the("insetplayer").innerHTML = ostr;
				the("playerSpan").style.display = "block";
			} else {
				the("insetplayer").innerHTML = "";
				the("playerSpan").style.display = "none";
			}
		}
	</script>

</pre>

</body>
</html>
